package io.linfeng.modules.app.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "圈子新增请求体")
public class TopicAddForm implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 分类id
	 */
	@NotNull(message="cateId不能为空")
	@ApiModelProperty(value = "分类id")
	private Integer cateId;
	/**
	 * 圈子名称
	 */
	@NotBlank(message="topicName不能为空")
	@Length(max = 10, message = "名称不能超过10个字符")
	@ApiModelProperty(value = "圈子名称")
	private String topicName;
	/**
	 * 描述
	 */
	@NotBlank(message="description不能为空")
	@Length(max = 30, message = "描述不能超过30个字符")
	@ApiModelProperty(value = "描述")
	private String description;
	/**
	 * 圈子头像
	 */
	@NotBlank(message="coverImage不能为空")
	@ApiModelProperty(value = "圈子头像")
	private String coverImage;
	/**
	 * 背景图
	 */
	@NotBlank(message="bgImage不能为空")
	@ApiModelProperty(value = "背景图")
	private String bgImage;

	@ApiModelProperty(value = "进圈条件false无限制true答题并审核")
	private Boolean rest;

	@ApiModelProperty(value = "问题内容设置")
	private String question;

	@ApiModelProperty(value = "是否私密：0公开 1私密")
	private Integer isPrivacy;

}
